home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
vcls
/
moden
/
adselnum.int
< prev
next >
Wrap
Text File
|
1996-04-08
|
2KB
|
54 lines
{$G+,X+,F+}
{Conditional defines that may affect this unit}
{$I AWDEFINE.INC}
{*********************************************************}
{* ADSELNUM.PAS 1.01 *}
{* Copyright (c) TurboPower Software 1995 *}
{* All rights reserved. *}
{*********************************************************}
unit AdSelNum;
{-For selecting phone numbers from a list}
interface
uses
SysUtils, WinTypes, WinProcs, Messages,
Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Buttons, ExtCtrls, Grids,
AdPBook;
type
TNumberSelectForm = class(TForm)
OkBtn: TBitBtn;
CancelBtn: TBitBtn;
HelpBtn: TBitBtn;
ListGrid: TDrawGrid;
ListHeader: THeader;
procedure ListGridDrawCell( Sender : TObject ; Col, Row : Longint;
Rect : TRect; State : TGridDrawState );
procedure ListHeaderSized(Sender: TObject; ASection, AWidth: Integer);
procedure FormCreate(Sender: TObject);
procedure OkBtnClick(Sender: TObject);
procedure ListGridDblClick(Sender: TObject);
protected
LeftEdge : Word;
Items : TList;
Phonebook : TApdPhonebook;
FSelNum : String;
procedure ResizeGridColumns;
{-Change the widths of the grid columns to match the header sections}
public
constructor Create(const AOwner : TComponent; const PB : TApdPhonebook);
destructor Destroy; virtual;
property SelectedNumber : String
read FSelNum;
end;